package top.huhuiyu.teachproject.service;

import org.springframework.transaction.annotation.Transactional;
import org.springframework.web.multipart.MultipartFile;
import top.huhuiyu.teachproject.base.BaseDataResult;
import top.huhuiyu.teachproject.entity.TbFile;

import javax.servlet.http.HttpServletResponse;

public interface FileService {
  @Transactional
  BaseDataResult<TbFile> upload(TbFile tbFile, MultipartFile file);

  void download(Integer fid, HttpServletResponse response);
}
